﻿using UnityEngine;
using System.Collections;

public class PlayMusic : MonoBehaviour 
{
	
	void OnGUI()
    {
        if (GUI.Button(new Rect(0, 50, 100, 50), "播放吧"))
        {
            this.transform.GetComponent<MusicComponent>().Play(this.Test);
        }
    }

    void Test(bool ok)
    {
        if (!ok)
        {

        }
        else
        {
            Debug.Log("全部下载完成");
        }
    }
}
